package com.it.park.rms.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.it.park.rms.client.model.Permission;
import com.it.park.rms.client.service.PermissionService;
import com.it.park.rms.dao.PermissionMapper;
import com.it.park.rms.service.impl.base.BaseServiceImpl;

@Service("permissionService")
public class PermissionServiceImpl  extends BaseServiceImpl<Permission> implements PermissionService{

	@Autowired
	private PermissionMapper permissionMapper;
	
	@Override
	public boolean deleteByPrimaryKey(Integer id) {
		return permissionMapper.deleteByPrimaryKey(id) ==1;
	}

	@Override
	public boolean insertSelective(Permission record) {
		return permissionMapper.insertSelective(record)==1;
	}

	@Override
	public boolean updateByPrimaryKey(Permission record) {
		return permissionMapper.updateByPrimaryKey(record)==1;
	}

	@Override
	public List<Permission> selectPagination(Permission t) {
		return permissionMapper.selectPagination(t);
	}

	@Override
	public Integer selectTotal(Permission t) {
		return permissionMapper.selectTotal(t);
	}

	@Override
	public boolean updateByPrimaryKeySelective(Permission record) {
		return permissionMapper.updateByPrimaryKeySelective(record)==1;
	}

	@Override
	public List<Permission> selectByModel(Permission t) {
		return permissionMapper.selectByModel(t);
	}

}
